home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / PowerPlant / CmdPopup / CMessPopup.h < prev    next >
Encoding:
Text File  |  1997-07-21  |  1011 b   |  37 lines  |  [TEXT/CWIE]

  1. // ===========================================================================
  2. // CMessPopup.h
  3. //
  4. // ©1997 Maxym Runov. All rights reserved.
  5. //
  6. // You are free to use this code in any project, 
  7. // but the copyright remains with me.
  8. // Any questions and notes are welcome.
  9. //
  10. // E-mail: max@sunbay.crimea.ua
  11. // ===========================================================================
  12. // Version 1.0
  13.  
  14. #pragma once
  15. #include <LStdControl.h>
  16.  
  17. class CMessPopup : public LStdPopupMenu {
  18.     public:
  19.         enum { class_ID = 'CmdP' };
  20.                             CMessPopup(LStream *inStream);
  21.         virtual                ~CMessPopup();
  22.  
  23.         virtual ResIDT        GetPopupMenuResID(void) { return mPopupMenuResID; };
  24.         
  25.         virtual    void        SetValue(Int32 inValue);
  26.         virtual    void        SetupCurrentMenuItem(Int16 inCurrentItem);
  27.  
  28.     protected:
  29.         Int16                mNumCommands;
  30.         CommandT            **mCommandNums;
  31.         ResIDT                mPopupMenuResID;    
  32.         
  33.         virtual void        BroadcastValueMessage(void);
  34.         virtual void        ReadCommandNumbers(void);
  35.         virtual CommandT    CommandFromIndex(Int16 inIndex) const;
  36. };
  37.